home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre2.z / postgre2 / ref / unix / information < prev    next >
Encoding:
Text File  |  1992-08-27  |  3.5 KB  |  119 lines

  1. .\" XXX standard disclaimer belongs here....
  2. .\" $Header: /private/postgres/ref/unix/RCS/information,v 1.7 1992/07/13 03:45:59 ptong Exp $
  3. .SS UNIX 6/14/90
  4. .XA 0 "Section 2 \*- \*(UU Commands (\*(UU)"
  5. .SP INFORMATION UNIX 6/14/90
  6. .sp 2i
  7. .ps 14
  8. .ce
  9. .b "SECTION 2 \*- \*(UU COMMANDS (\*(UU)"
  10. .sp 3
  11. .XA 1 "General Information"
  12. .uh OVERVIEW
  13. .lp
  14. This section contains
  15. information on the interaction between \*(PP and
  16. the operating system.
  17. In particular, the pages of this section describe
  18. the \*(PP support programs which are
  19. executable as \*(UU commands.
  20. .uh TERMINOLOGY
  21. .lp
  22. In the following documentation,
  23. the term
  24. .i site
  25. may be interpreted as
  26. the host machine on which \*(PP is installed.
  27. But since it is possible to install more than
  28. one set of \*(PP databases on a single host,
  29. this term more precisely denotes any
  30. particular set of installed \*(PP binaries and databases.
  31. .lp
  32. The
  33. .i "\*(PP super user"
  34. is the user named
  35. .i postgres
  36. (usually),
  37. who is the owner of the \*(PP binaries and
  38. database files.
  39. As the super user,
  40. all protection mechanisms may be bypassed
  41. and any data accessed arbitrarily.
  42. In addition,
  43. the \*(PP super user is allowed to
  44. execute some support programs which are generally not available to all users.
  45. Note that the postgres super user is
  46. .i not
  47. the same as root,
  48. and should have a non-zero userid.
  49. .lp
  50. The
  51. .i "database base administrator"
  52. or
  53. .A DBA
  54. is the person who
  55. is responsible for installing \*(PP
  56. to enforce a security policy for a site.
  57. The
  58. .A DBA
  59. will
  60. add new users by the method described below,
  61. change the status of user-defined functions
  62. from
  63. .b untrusted
  64. to
  65. .b trusted
  66. as explained in \fBdefine function\fR(commands), and maintain a set of
  67. template databases for use by \fBcreatedb\fR(unix).
  68. .lp
  69. The
  70. .ul
  71. postmaster is a process which acts as a clearing house for requests to
  72. the \*(PP system.  Basically, frontend applications connect with the postmaster
  73. which keeps tracks of any system errors and communication between the backend
  74. processes.  The postmaster (POSTMASTER (UNIX)) takes from zero to seven
  75. arguments to tune its behavior.
  76. Supplying arguments is necessary only if you intend to run multiple sites
  77. or a non-default site.
  78. .lp
  79. The
  80. .ul
  81. \*(PP backend
  82. (.../bin/postgres) may
  83. be executed directly from the shell by
  84. the postgres super user (with the database name as an argument).
  85. However, doing this bypasses the shared buffer pool and lock table
  86. associated with a postmaster/site,
  87. so this is not recommended in a multiuser site.
  88. .lp
  89. .uh NOTATION
  90. .lp
  91. .q .../
  92. at the front of file names is used to represent the path
  93. to the postgres user's home directory.
  94. Anything in brackets (\*(lq[\*(rq and \*(lq]\*(rq) is optional.
  95. Anything in braces (\*(lq{\*(rq and \*(lq}\*(rq) can be repeated 0 or more
  96. times.  Parentheses ( \*(lq(\*(rq and \*(lq)\*(rq ) are used to group boolean
  97. expressions.  \*(lq|\*(rq is the boolean operator
  98. .A OR .
  99. .uh "USING \*(PP FROM UNIX"
  100. .lp
  101. All \*(PP commands which are executed directly from a UNIX shell
  102. are found in the directory
  103. .q \&.../bin.
  104. Including this directory in your search path will make
  105. executing the commands easier.
  106. .lp
  107. There is a collection of system catalogs that exist at each site.
  108. These include a
  109. .A USER
  110. class 
  111. which contains an instance for each valid \*(PP user.
  112. In the instance is a collection of \*(PP privileges,
  113. the most relevant of which
  114. is whether or not creation of \*(PP databases is allowed.
  115. A \*(UU user can do nothing at all with \*(PP
  116. until an appropriate record is installed in this system catalog class.
  117. Further information on the system catalogs is available
  118. by running queries on the appropraiate classes.
  119.